from random import *
numset = set()
while len(numset)<8:
    numset.add(randint(1,13))
print(numset)
userset = set()
for i in range(1,9):
    userset.add(int(input("请输入1到13不重复的数字：").format(i)))
z=numset.intersection(userset)
l=len(z)
if(l==8):
    print("一等奖")
elif(l==7):
    print("二等奖")
elif(l==6):
    print("三等奖")
elif(l==5):
    print("四等奖")